package com.lin.tk.entity;

import com.lin.tk.config.UUIdGenId;
import lombok.Data;
import lombok.NoArgsConstructor;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 作者：lin
 * 功能：
 * 时间：2022/9/10 22:04
 */
@Data
@Table(name = "tb_user")
@NoArgsConstructor
public class User {
    @Id
    @KeySql(genId = UUIdGenId.class)
    private String id;

    private String username;

    private String password;

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }
}
